package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",22,"滕州","001");
        zs.name = "张三";
        zs.age = 22;
        zs.address = "滕州";
        zs.classname = "jsd";
        zs.stuId = "001";
        zs.eat();
        zs.sayHi();
        zs.study();

        Teacher ls = new Teacher("李四",52,"山东",2000);
        ls.name = "李四";
        ls.age=52;
        ls.address="山东";
        ls.salary=2000;
        ls.eat();
        ls.teac();
        ls.sayHi();

        Doctor ww=new Doctor("王五",44,"北京","手术");
        ww.name="王五";
        ww.age=44;
        ww.address="北京";
        ww.title="手术";
        ww.eat();
        ww.cut();


    }
}
